FROM dordoka/tomcat
MAINTAINER coola58 "yankaili2006@gmail.com"

ENV APP_HOME /opt/tomcat
ENV APP xwl-weixin-h5
ENV LANG C.UTF-8

RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME

# update system timezone Shang
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
 
#update application timezone
RUN echo "Asia/Shanghai" > /etc/timezone

ADD server.xml $APP_HOME/conf/server.xml
COPY target/$APP $APP_HOME/$APP

ADD run.sh $APP_HOME/run.sh
RUN chmod +x run.sh

CMD ["sh","-c","./run.sh"]